--- usr/lib/oracle/xe/app/oracle/product/10.2.0/server/config/scripts/stopall.sh.orig	2008-11-03 17:16:35.907892000 +0200
+++ usr/lib/oracle/xe/app/oracle/product/10.2.0/server/config/scripts/stopall.sh	2008-11-03 19:11:09.329175002 +0200
@@ -18,7 +18,7 @@
         echo " Define ORACLE_SID  as setenv ORACLE_SID"
         exit 1
         fi
-elif [ $shell = "^/bin/bash$" ]
+elif [ $shell = "^/bin/bash$" || $shell = "/bin/sh" ]
 then
         if [ `echo $ORACLE_HOME ` = "" ] || [ `echo $ORACLE_SID` = "" ]
         then
@@ -34,18 +34,18 @@
 export ORACLE_HOME
 export ORACLE_SID
 
-pmon=`ps -ef | egrep pmon_$ORACLE_SID'\>' | grep -v grep`
+pmon=`ps -ax | egrep pmon_$ORACLE_SID'\>' | grep -v grep`
 
 if [ "$pmon" != "" ];
 then
-	$SU -s /bin/bash $ORACLE_OWNER -c "$ORACLE_HOME/bin/sqlplus -s /nolog @$ORACLE_HOME/config/scripts/stopdb.sql" > /dev/null 2>&1
+	$SU $ORACLE_OWNER -c "$ORACLE_HOME/bin/sqlplus -s /nolog @$ORACLE_HOME/config/scripts/stopdb.sql" > /dev/null 2>&1
 fi
 
-status=`ps -ef | grep tns | grep oracle | awk '{print $1}'`
+status=`ps -axcu | grep tns | grep oracle | awk '{print $1}'`
 
 if [ "$status" != "" ]; 
 then
-	$SU -s /bin/bash $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl stop" > /dev/null 2>&1
+	$SU $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl stop" > /dev/null 2>&1
 fi
 
 exit 0
